class Student{
    public String name;
    public int age;
    public int studentNum;
    public void setStudent(String name,int age,int studentNum){
        this.name = name;
        this.age = age;
        this.studentNum = studentNum;
    }
    public void doClass(){
        System.out.println(name+"上课......");
    }
}
public class Test {
    public static void main(String[] args) {
        Student S1 = new Student();
        S1.setStudent("张三", 14, 20241111);
    }
}


//public class Test {
//    public static void main(String[] args) {
//        Student S1 = new Student();
//        S1.setStudent("张三",14,20241111);
////        S1.name = "张三";
////        S1.age = 15;
////        S1.studentNum = 20211111;
////        S1.doClass();
//
//    }
//}
